package com.group01.community.mapper;

import com.group01.community.entity.SysRoleMenu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 角色和菜单关联表 Mapper 接口
 * </p>
 *
 * @author iuoly
 * @since 2022-07-04
 */
@Repository
public interface SysRoleMenuMapper extends BaseMapper<SysRoleMenu> {

    /**
     * 根据角色id查询 菜单
     * @param roldId
     * @return
     */
    List<SysRoleMenu> getMenuIdsByRoldId(String roldId);

}
